<!DOCTYPE html>
<html lang="zh-CN">
<head>
  <meta charset="UTF-8">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <title>晓恩小儿推拿 - 专业儿童健康调理</title>
  <style>
    /* 基础样式 */
    * {
      margin: 0;
      padding: 0;
      box-sizing: border-box;
      font-family: 'Microsoft YaHei', sans-serif;
    }

    body {
      line-height: 1.6;
      color: #333;
      padding-top: 70px; /* 为固定导航栏留出空间 */
    }

    /* 导航栏样式 */
    .navbar {
      position: fixed;
      top: 0;
      width: 100%;
      background: rgba(255, 255, 255, 0.95);
      box-shadow: 0 2px 10px rgba(0,0,0,0.1);
      z-index: 1000;
      padding: 15px 0;
    }

    .nav-container {
      max-width: 1200px;
      margin: 0 auto;
      display: flex;
      justify-content: space-between;
      align-items: center;
      padding: 0 20px;
    }

    .nav-links {
      display: flex;
      gap: 40px;
    }

    .nav-link {
      color: #2a7f62;
      text-decoration: none;
      font-weight: 500;
      transition: color 0.3s;
    }

    .nav-link:hover {
      color: #1a5d48;
    }

    /* 轮播图 */
    .carousel {
      width: 100%;
      height: 500px;
      overflow: hidden;
      position: relative;
    }

    .slide {
      width: 100%;
      height: 100%;
      position: absolute;
      opacity: 0;
      transition: 1s ease;
    }

    .slide.active {
      opacity: 1;
    }

    /* 轮播控制 */
    .slide-controls {
      position: absolute;
      top: 50%;
      width: 100%;
      display: flex;
      justify-content: space-between;
      transform: translateY(-50%);
      padding: 0 20px;
    }

    .arrow {
      cursor: pointer;
      font-size: 40px;
      color: rgba(255,255,255,0.8);
      transition: all 0.3s;
    }

    .arrow:hover {
      color: white;
      transform: scale(1.2);
    }

    .indicators {
      position: absolute;
      bottom: 20px;
      left: 50%;
      transform: translateX(-50%);
      display: flex;
      gap: 10px;
    }

    .indicator {
      width: 12px;
      height: 12px;
      border-radius: 50%;
      background: rgba(255,255,255,0.5);
      cursor: pointer;
      transition: all 0.3s;
    }

    .indicator.active {
      background: white;
      transform: scale(1.2);
    }

    /* 通用模块样式 */
    .section {
      padding: 60px 15%;
      text-align: center;
    }

    .section-title {
      font-size: 2.5em;
      color: #2a7f62;
      margin-bottom: 40px;
      position: relative;
    }

    /* 推拿介绍 */
    .massage-intro {
      display: flex;
      gap: 30px;
      margin-top: 40px;
    }

    .intro-card {
      flex: 1;
      padding: 30px;
      border-radius: 10px;
      box-shadow: 0 5px 15px rgba(0,0,0,0.1);
      transition: transform 0.3s ease;
    }

    .intro-card:hover {
      transform: translateY(-10px);
    }

    /* 店铺介绍 */
    .store-info img {
      width: 100%;
      max-width: 800px;
      border-radius: 10px;
      margin-bottom: 20px;
    }

    /* 师傅介绍 */
    .master-grid {
      display: grid;
      grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
      gap: 30px;
      margin-top: 40px;
    }

    .master-card {
      background: #f8f8f8;
      padding: 20px;
      border-radius: 10px;
    }

    .master-img {
      width: 150px;
      height: 150px;
      border-radius: 50%;
      margin: 0 auto 20px;
      object-fit: cover;
    }

    /* 知识科普 */
    .knowledge-grid {
      display: grid;
      grid-template-columns: repeat(2, 1fr);
      gap: 30px;
      text-align: left;
    }

    /* 按钮样式 */
    .btn {
      display: inline-block;
      padding: 12px 30px;
      background: #2a7f62;
      color: white;
      border: none;
      border-radius: 5px;
      text-decoration: none;
      margin-top: 20px;
      transition: background 0.3s;
    }

    .btn:hover {
      background: #1a5d48;
    }

    /* 页脚 */
    footer {
      background: #333;
      color: white;
      padding: 40px 15%;
      text-align: center;
    }

    .social-links {
      display: flex;
      justify-content: center;
      gap: 20px;
      margin-bottom: 20px;
    }

    .social-links a {
      color: white;
      font-size: 24px;
    }
    /* 添加以下样式 */
    .modal-overlay {
      display: none;
      position: fixed;
      top: 0;
      left: 0;
      width: 100%;
      height: 100%;
      background: rgba(0,0,0,0.5);
      z-index: 2000;
      justify-content: center;
      align-items: center;
    }

    .modal-content {
      background: white;
      padding: 30px;
      border-radius: 10px;
      text-align: center;
      position: relative;
    }

    .qrcode {
      width: 200px;
      height: 200px;
      display: block;
      margin: 0 auto;
    }

    .close-btn {
      position: absolute;
      top: 10px;
      right: 15px;
      font-size: 24px;
      cursor: pointer;
      color: #666;
    }
  </style>
</head>
<body>
<!-- 导航栏 -->
<nav class="navbar">
  <div class="nav-container">
    <h2 style="color: #2a7f62;">晓恩小儿推拿</h2>
    <div class="nav-links">
      <a href="#home" class="nav-link">首页</a>
      <a href="#about" class="nav-link">关于我们</a>
      <a href="#gallery" class="nav-link">门店风采</a>
      <a href="#contact" class="nav-link">联系我们</a>
    </div>
  </div>
</nav>

<!-- 轮播图 -->
<div id="home" class="carousel">
  <div class="slide active" style="background: url('https://www.zhenyoutang.cn/images/banner1.jpg') center/cover;"></div>
  <div class="slide" style="background: url('http://img.osako.top/xiaoen/wallpaper/%E8%BD%AE%E6%92%AD%E5%9B%BE2.jpg') center/cover;"></div>
  <div class="slide" style="background: url('http://img.osako.top/xiaoen/wallpaper/%E8%BD%AE%E6%92%AD%E5%9B%BE3.jpg') center/cover;"></div>

  <div class="slide-controls">
    <div class="arrow" onclick="prevSlide()">❮</div>
    <div class="arrow" onclick="nextSlide()">❯</div>
  </div>

  <div class="indicators" id="indicators"></div>
</div>

<!-- 推拿介绍 -->
<section id="about" class="section">
  <h2 class="section-title">小儿推拿特色</h2>
  <div class="massage-intro">
    <div class="intro-card">
      <h3>传统中医手法</h3>
      <p>传承千年推拿技艺，结合现代医学理论，安全无副作用</p>
    </div>
    <div class="intro-card">
      <h3>专业儿童调理</h3>
      <p>针对0-12岁儿童常见病调理，增强免疫力</p>
    </div>
    <div class="intro-card">
      <h3>个性化方案</h3>
      <p>根据体质定制推拿方案，跟踪调理效果</p>
    </div>
  </div>
</section>

<!-- 店铺介绍 -->
<section id="gallery" class="section" style="background: #f8f8f8;">
  <h2 class="section-title">我们的门店</h2>
  <div class="store-info">
    <img src="http://img.osako.top/xiaoen/wallpaper/%E8%BD%AE%E6%92%AD%E5%9B%BE2.jpg" alt="门店环境">
    <div>
      <p>地址：万达金街</p>
      <p>营业时间：周一至周日 9:00-20:00</p>
      <a href="javascript:void(0)" class="btn" onclick="showAppointment()">立即预约</a>
    </div>
  </div>
</section>

<!-- 师傅团队 -->
<section class="section">
  <h2 class="section-title">专业推拿师团队</h2>
  <div class="master-grid">
    <div class="master-card">
      <img src="http://img.osako.top/xiaoen/wallpaper/avater.jpg" alt="王师傅" class="master-img">
      <h3>凌师傅</h3>
      <p>国家高级推拿师</p>
      <p>10年儿童推拿经验</p>
    </div>
    <div class="master-card">
      <img src="http://img.osako.top/xiaoen/wallpaper/avater.jpg" alt="李师傅" class="master-img">
      <h3>陈师傅</h3>
      <p>中医儿科专家</p>
      <p>8年从业经验</p>
    </div>
    <div class="master-card">
      <img src="http://img.osako.top/xiaoen/wallpaper/avater.jpg" alt="张师傅" class="master-img">
      <h3>石师傅</h3>
      <p>小儿保健推拿师</p>
      <p>5年从业经验</p>
    </div>
  </div>
</section>

<!-- 知识科普 -->
<section class="section" style="background: #f8f8f8;">
  <h2 class="section-title">健康知识科普</h2>
  <div class="knowledge-grid">
    <article>
      <h3>谷雨节气!</h3>
      <p>最近细菌感染的孩子增多（细菌感染引起的鼻窦炎，扁桃体炎） 原因是气温上升，孩子手上更容易滋生细菌...</p>
    </article>
    <article>
      <h3>春季必知!</h3>
      <p>小儿推拿疏肝调理脾胃秘籍春天到啦!万物复苏，咱们宝贝们也到了生长发育的黄金期...</p>
    </article>
    <article>
      <h3>儿童常见病的推拿调理</h3>
      <p>针对儿童常见病症的推拿调理方案...</p>
    </article>
    <article>
      <h3>小儿推拿常用手法解析</h3>
      <p>小儿推拿是中医传统疗法之一，通过特定的手法刺激穴位...</p>
    </article>
  </div>
  <a href="javascript:void(0)" class="btn" onclick="showMoreArticles()">查看更多文章</a>
  <div id="moreArticlesTip" style="display: none; text-align: center; padding: 20px; color: #666;">
    暂无更多文章
  </div>
</section>

<!-- 联系我们 -->
<section id="contact" class="section">
  <h2 class="section-title">联系我们</h2>
  <div style="max-width: 800px; margin: 0 auto;">
    <p>如有任何问题或预约需求，请随时联系我们</p>
    <div style="margin-top: 30px;">
      <p><strong>电话：</strong> 123-4567-8910</p>
      <p><strong>微信：</strong> xiaoen_tuina</p>
      <p><strong>邮箱：</strong> service@xiaoen.com</p>
    </div>

  </div>
</section>

<div class="modal-overlay" id="appointmentModal">
  <div class="modal-content">
    <span class="close-btn" onclick="closeModal()">&times;</span>
    <img src="http://img.osako.top/xiaoen/wallpaper/1747100044338.png" alt="预约二维码" class="qrcode">
    <p style="margin-top: 20px; color: #333;">请扫码预约</p>
  </div>
</div>



<!-- 页脚 -->
<footer>
  <div class="social-links">
    <a href="#"><i class="fab fa-weixin"></i></a>
    <a href="#"><i class="fab fa-weibo"></i></a>
    <a href="#"><i class="fab fa-qq"></i></a>
  </div>
  <p>© 2025 晓恩小儿推拿 版权所有</p>
  <p style="margin-top: 10px; font-size: 0.9em;">备案号：XXXXXX</p>
</footer>

<!-- Font Awesome 图标库 -->
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/5.15.4/css/all.min.css">

<script>
  // 轮播图逻辑
  let currentSlide = 0;
  const slides = document.querySelectorAll('.slide');
  const indicatorsContainer = document.getElementById('indicators');

  // 创建指示器
  slides.forEach((_, index) => {
    const indicator = document.createElement('div');
    indicator.className = 'indicator' + (index === 0 ? ' active' : '');
    indicator.onclick = () => showSlide(index);
    indicatorsContainer.appendChild(indicator);
  });

  function showSlide(n) {
    currentSlide = (n + slides.length) % slides.length;

    // 更新幻灯片
    slides.forEach((slide, index) => {
      slide.classList.toggle('active', index === currentSlide);
    });

    // 更新指示器
    document.querySelectorAll('.indicator').forEach((indicator, index) => {
      indicator.classList.toggle('active', index === currentSlide);
    });
  }

  function nextSlide() {
    showSlide(currentSlide + 1);
    resetInterval();
  }

  function prevSlide() {
    showSlide(currentSlide - 1);
    resetInterval();
  }

  // 自动播放逻辑
  let slideInterval = setInterval(nextSlide, 5000);

  function resetInterval() {
    clearInterval(slideInterval);
    slideInterval = setInterval(nextSlide, 5000);
  }

  // 平滑滚动
  document.querySelectorAll('a[href^="#"]').forEach(anchor => {
    anchor.addEventListener('click', function (e) {
      e.preventDefault();
      const target = document.querySelector(this.getAttribute('href'));
      if (target) {
        target.scrollIntoView({
          behavior: 'smooth',
          block: 'start'
        });
      }
    });
  });

  // 滚动时导航栏高亮
  window.addEventListener('scroll', () => {
    const scrollPosition = window.scrollY;

    document.querySelectorAll('.section').forEach(section => {
      const sectionTop = section.offsetTop - 100;
      const sectionHeight = section.offsetHeight;
      const sectionId = section.getAttribute('id');

      if (scrollPosition >= sectionTop && scrollPosition < sectionTop + sectionHeight) {
        document.querySelectorAll('.nav-link').forEach(link => {
          link.classList.toggle('active', link.getAttribute('href') === `#${sectionId}`);
        });
      }
    });
  });

  // 在现有script中添加以下函数
  function showAppointment() {
    document.getElementById('appointmentModal').style.display = 'flex';
  }

  function closeModal() {
    document.getElementById('appointmentModal').style.display = 'none';
  }

  function showMoreArticles() {
    const tip = document.getElementById('moreArticlesTip');
    tip.style.display = 'block';
    setTimeout(() => {
      tip.style.display = 'none';
    }, 2000); // 2秒后自动隐藏
    return false; // 阻止链接默认行为
  }

  // 点击遮罩层关闭
  document.getElementById('appointmentModal').addEventListener('click', function(e) {
    if(e.target === this) closeModal();
  });
</script>
</body>
</html>
